<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('AlibabaTradeFastCreateOrderParam/ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfo.class.php');

class AlibabaTradeFastCargo extends SDKDomain {

       	
    private $offerId;
    
        /**
    * @return 商品对应的offer id
    */
        public function getOfferId() {
        return $this->offerId;
    }
    
    /**
     * 设置商品对应的offer id     
     * @param Long $offerId     
     * 参数示例：<pre>554456348334</pre>     
     * 此参数必填     */
    public function setOfferId( $offerId) {
        $this->offerId = $offerId;
    }
    
        	
    private $specId;
    
        /**
    * @return 商品规格id
    */
        public function getSpecId() {
        return $this->specId;
    }
    
    /**
     * 设置商品规格id     
     * @param String $specId     
     * 参数示例：<pre>b266e0726506185beaf205cbae88530d</pre>     
     * 此参数必填     */
    public function setSpecId( $specId) {
        $this->specId = $specId;
    }
    
        	
    private $quantity;
    
        /**
    * @return 商品数量(计算金额用)
    */
        public function getQuantity() {
        return $this->quantity;
    }
    
    /**
     * 设置商品数量(计算金额用)     
     * @param Double $quantity     
     * 参数示例：<pre>5</pre>     
     * 此参数必填     */
    public function setQuantity( $quantity) {
        $this->quantity = $quantity;
    }
    
        	
    private $openOfferId;
    
        /**
    * @return 加密offerId，当搜索返回只有openOfferId时，需采用openOfferId替代offerId下单
    */
        public function getOpenOfferId() {
        return $this->openOfferId;
    }
    
    /**
     * 设置加密offerId，当搜索返回只有openOfferId时，需采用openOfferId替代offerId下单     
     * @param String $openOfferId     
     * 参数示例：<pre>Wcv2w970KoL1BCpJGQp3vwKvcBThOPlpHnUtkK3T0n4=</pre>     
     * 此参数必填     */
    public function setOpenOfferId( $openOfferId) {
        $this->openOfferId = $openOfferId;
    }
    
        	
    private $outMemberId;
    
        /**
    * @return 外部下游会员ID
    */
        public function getOutMemberId() {
        return $this->outMemberId;
    }
    
    /**
     * 设置外部下游会员ID     
     * @param String $outMemberId     
     * 参数示例：<pre>98928912-23</pre>     
     * 此参数必填     */
    public function setOutMemberId( $outMemberId) {
        $this->outMemberId = $outMemberId;
    }
    
        	
    private $bizFenXiaoOutSubOrderInfo;
    
        /**
    * @return 分销下游子单数据
    */
        public function getBizFenXiaoOutSubOrderInfo() {
        return $this->bizFenXiaoOutSubOrderInfo;
    }
    
    /**
     * 设置分销下游子单数据     
     * @param array include @see ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfo[] $bizFenXiaoOutSubOrderInfo     
     * 参数示例：<pre>{}</pre>     
     * 此参数必填     */
    public function setBizFenXiaoOutSubOrderInfo(ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfo $bizFenXiaoOutSubOrderInfo) {
        $this->bizFenXiaoOutSubOrderInfo = $bizFenXiaoOutSubOrderInfo;
    }
    
        	
    private $outItemCode;
    
        /**
    * @return 外部渠道商品编码
    */
        public function getOutItemCode() {
        return $this->outItemCode;
    }
    
    /**
     * 设置外部渠道商品编码     
     * @param String $outItemCode     
     * 参数示例：<pre>123</pre>     
     * 此参数必填     */
    public function setOutItemCode( $outItemCode) {
        $this->outItemCode = $outItemCode;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "offerId", $this->stdResult )) {
    				$this->offerId = $this->stdResult->{"offerId"};
    			}
    			    		    				    			    			if (array_key_exists ( "specId", $this->stdResult )) {
    				$this->specId = $this->stdResult->{"specId"};
    			}
    			    		    				    			    			if (array_key_exists ( "quantity", $this->stdResult )) {
    				$this->quantity = $this->stdResult->{"quantity"};
    			}
    			    		    				    			    			if (array_key_exists ( "openOfferId", $this->stdResult )) {
    				$this->openOfferId = $this->stdResult->{"openOfferId"};
    			}
    			    		    				    			    			if (array_key_exists ( "outMemberId", $this->stdResult )) {
    				$this->outMemberId = $this->stdResult->{"outMemberId"};
    			}
    			    		    				    			    			if (array_key_exists ( "bizFenXiaoOutSubOrderInfo", $this->stdResult )) {
    			$bizFenXiaoOutSubOrderInfoResult=$this->stdResult->{"bizFenXiaoOutSubOrderInfo"};
    				$object = json_decode ( json_encode ( $bizFenXiaoOutSubOrderInfoResult ), true );
					$this->bizFenXiaoOutSubOrderInfo = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfoResult=new ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfo();
						$ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfoResult->setArrayResult($arrayobject );
						$this->bizFenXiaoOutSubOrderInfo [$i] = $ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfoResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "outItemCode", $this->stdResult )) {
    				$this->outItemCode = $this->stdResult->{"outItemCode"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "offerId", $this->arrayResult )) {
    			$this->offerId = $arrayResult['offerId'];
    			}
    		    	    			    		    			if (array_key_exists ( "specId", $this->arrayResult )) {
    			$this->specId = $arrayResult['specId'];
    			}
    		    	    			    		    			if (array_key_exists ( "quantity", $this->arrayResult )) {
    			$this->quantity = $arrayResult['quantity'];
    			}
    		    	    			    		    			if (array_key_exists ( "openOfferId", $this->arrayResult )) {
    			$this->openOfferId = $arrayResult['openOfferId'];
    			}
    		    	    			    		    			if (array_key_exists ( "outMemberId", $this->arrayResult )) {
    			$this->outMemberId = $arrayResult['outMemberId'];
    			}
    		    	    			    		    		if (array_key_exists ( "bizFenXiaoOutSubOrderInfo", $this->arrayResult )) {
    		$bizFenXiaoOutSubOrderInfoResult=$arrayResult['bizFenXiaoOutSubOrderInfo'];
    			$this->bizFenXiaoOutSubOrderInfo = new ComAlibabaOceanOpenplatformBizTradeCommonModelBizFenXiaoOutSubOrderInfo();
    			$this->bizFenXiaoOutSubOrderInfo->setStdResult ( $bizFenXiaoOutSubOrderInfoResult);
    		}
    		    	    			    		    			if (array_key_exists ( "outItemCode", $this->arrayResult )) {
    			$this->outItemCode = $arrayResult['outItemCode'];
    			}
    		    	    		}
 
   
}
?>